//
//  TravelAgencyEntity.m
//  SXH
//
//  Created by 房 国生 on 15/7/23.
//  Copyright (c) 2015年 lyss. All rights reserved.
//

#import "TravelAgencyEntity.h"

@implementation TravelAgencyEntity

- (instancetype)initWithAttributes:(NSDictionary *)attributes {
    
    self = [super init];
    if (!self) {
        return nil;
    }
    
    self.a_id= [attributes valueForKeyPath:@"a_id"];
    self.a_name = [attributes valueForKeyPath:@"a_name"];
    self.a_tel = [attributes valueForKeyPath:@"a_tel"];
    self.a_fax = [attributes valueForKeyPath:@"a_fax"];
    self.a_log = [NSString stringWithFormat:@"%@/%@", IMAGE_URL, [attributes valueForKeyPath:@"a_log"]];
    self.a_address = [attributes valueForKeyPath:@"a_address"];
    self.a_cityname = [attributes valueForKeyPath:@"a_cityname"];
    self.a_user = [attributes valueForKeyPath:@"a_user"];
    self.c_id = [attributes valueForKeyPath:@"c_id"];
    
    return self;
}


@end
